#import "RRDialog.h"

@protocol RRLoginDialogDelegate;

@interface RRLoginDialog : RRDialog {
  id<RRLoginDialogDelegate> _loginDelegate;
}

-(id) initWithURL:(NSString *) loginURL
      loginParams:(NSMutableDictionary *) params
      delegate:(id <RRLoginDialogDelegate>) delegate;
@end

///////////////////////////////////////////////////////////////////////////////////////////////////

@protocol RRLoginDialogDelegate <NSObject>

- (void)rrDialogLogin:(NSString*)token expirationDate:(NSDate*)expirationDate;

- (void)rrDialogNotLogin:(BOOL)cancelled;

@end


